package com.stlm2.dems.dao;

import com.stlm2.dems.entity.GoodsOrder;
import com.stlm2.core.base.BaseDao;
import com.stlm2.dems.entity.UserCards;

import java.util.List;

public interface GoodsOrderDao extends BaseDao<GoodsOrder> {


    public GoodsOrder getByCode(String code);

    public List<GoodsOrder> getByShopOrderCode(String shopOrderCode);

    public Integer countByPurchaseOrderCode(String purchaseOrderCode);

    public Double sumByPurchaseOrderCode(String purchaseOrderCode);

    public Double sumByShopOrderCode(String shopOrderCode);

    public Double sumForCommission(GoodsOrder goodsOrder);

    public  void  updateComment(String shopOrderCode);
}